<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<%
    int sum=0;//定义一个sum变量
    for(int i=0;i<=10;i++){
        sum+=i;
    }
    out.println("<h1>sum="+sum+"</h1>");
%>
<br/>
<a href="hello-servlet">Hello Servlet</a>
</body>
</html>